﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SenerPro;
using MensUnoShop.Models;

namespace MensUnoShop.Discount
{
    [Serializable]
    //簡易折扣
    public class SimpleDiscount:ITradeInDiscount
    {
        private string _title;
        private int _deprice;
        private Config.OrderDiscountType _sktype;

        public string TITLE { set { _title = value; } get { return _title; } }
        public int DEPRICE { set { _deprice = value; } get { return _deprice; } }
        public Config.OrderDiscountType SKTYPE { set { _sktype = value; } get { return _sktype; } }

        public SimpleDiscount() { }
        public SimpleDiscount(string title, int deprice, Config.OrderDiscountType sktype)
        {
            _title = title;
            _deprice = deprice;
            _sktype = sktype;
        }


        public void GetDiscount()
        {
           
        }

        public bool SetDiscount(string txid)
        {
            bool isset = false;
            
            return isset;
        }

        public void DealFail(string txid)
        {
            
        }
    }
}
